package service;

import java.util.List;
import model.User;
public interface IUserService {
	public boolean insertUser(User user)throws Exception;
	public boolean updateUser(User user) throws Exception;
	public boolean deleteUser(User user)throws Exception;
	public List<User> findAll()throws Exception;
	public User findById(int Id)throws Exception;
	public User findByName(String name)throws Exception;
	public boolean checkName(String name,String password)throws Exception;
	public boolean IsName(String name)throws Exception;//用户名是否存在

}

